#!/bin/bash

echo $(tput bold)$(tput setaf 4)
echo "-------------------------------------------------------------------------"
echo "RUNNING TASK: GENERATING CONTENT.";
echo "-------------------------------------------------------------------------"$(tput sgr0)

source includes/drush_path

ACCOUNTS=(
  'thewolf --mail=roldanarts@gmail.com --password=accessX32'
  'sam3k --mail=sroldan24@gmail.com --password=accessX32'
)

ELEMENTS=${#ACCOUNTS[@]}
for (( i=0; i < $ELEMENTS; i++))
do
  $DRUSH_PATH ucrt ${ACCOUNTS[${i}]}
done





echo $(tput bold)$(tput setaf 4)
echo "-------------------------------------------------------------------------"
echo "RUNNING TASK: ASSIGN ADMINISTRATOR USER ROLES.";
echo "-------------------------------------------------------------------------"$(tput sgr0)

USERS=( thewolf sam3k )

for USER in ${USERS[@]}
do
  $DRUSH_PATH urol "administrator" $USER
done
